const appInstance = getApp()
Page({

  /**
   * 页面的初始数据
   */
  data: {
    navHeight: 0,
    noTabHeight: 0,
    editing: false,
    avaertUrl: "https://free.modao.cc/uploads4/images/2836/28365480/v2_pj9ezs.jpg",
    name: "张学友",
    schoolName: "苏州实验小学",
    tel: "13332323232",
    idCard: "xxxxxxxxxxxxxxxxxx",
    schoolYear: 2019,
    schoolTerm: "上"
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    this.setData({
      navHeight: appInstance.globalData.navHeight,
      noTabHeight: appInstance.globalData.noTabHeight,
    })
  },

  onEdit(e) {
    this.setData({
      editing: e.detail.editing || false
    })
  },
  toEdit() {
    wx.navigateTo({
      url: '/pages/detailEdit/detailEdit'
    })
  },
  formEdit(e) {
    this.setData(e.detail)
  },
})